SDEF
// ----------------------------------------------------------------------------
//  $Logfile:: /Quake 2 Engine/Sin/Base Sin Data/Models/Monster/dark.def      $
// $Revision:: 32                                                             $
//   $Author:: Joeske                                                         $
//     $Date:: 11/14/98 1:25a                                                 $
//
// Copyright (C) 1998 by Ritual Entertainment, Inc.
// All rights reserved.
//
// This source may not be distributed and/or modified without
// expressly written permission by Ritual Entertainment, Inc.
//
// This is a model definition file.  It is to be used in conjunction with Sin.
// ----------------------------------------------------------------------------
// DESCRIPTION:
// The terrifying and huge Dark Captains.
//
// MODEL AUTHOR:
// Beau/Michael <Delete one>
//
/*SINED Monster_DarkCaptain (1 .5 0) (0 0 0) (0 0 0)
Dark Captain
*/

// ----------------------------------------------------------------------------
// FILE DECLARATIONS
//
// Model Commands
path models/dark
scale 1.25

// Base Model
dark_base.sbm

// Skins
normal         dark_base.tga
damage         dark_damage1.tga


// Normal Animations
walk1          dark_walk.SAM
run            dark_walk.SAM
aim1           dark_idle1.SAM
fire           dark_attackc.sam
//attack1        dark_attacka.sam
//attack2        dark_attackb.sam
//attack4        dark_attackd.sam
//attack5        dark_attacke.sam
//attack6        dark_attackf.sam

idle1          dark_idle1.SAM
twitch1        dark_idle2.SAM
twitch2        dark_idle3.SAM
melee1         dark_hit2.SAM
melee2         dark_attackD.sam
melee3         dark_kick2.SAM
melee4         dark_kickA.sam

// Pain & Location Based Animations
pain1          dark_pain2.SAM
pain2		   dark_paintorsoupper.sam
pain3		   dark_paintorsolower.sam
pain4          dark_painhead.sam

pain_head 		        dark_painhead.SAM
pain_torso_upper 	    dark_paintorsoupper.sam
pain_torso_lower 	    dark_paintorsolower.sam
pain_leg_right_upper 	dark_painlegright.SAM
pain_leg_right_lower 	dark_painlegright.SAM
pain_leg_left_upper 	dark_painlegleft.SAM
pain_leg_left_lower 	dark_painlegleft.SAM
pain_arm_right_upper 	dark_painarmright.sam
pain_arm_right_lower 	dark_painarmright.sam
pain_arm_left_upper 	dark_painarmleft.sam
pain_arm_left_lower 	dark_painarmleft.sam

// Death & Location Based Animations
death1		   dark_death1.sam
death2		   dark_death2.sam
death3		   dark_death3.sam

// Crouching Pain Location Based Animations

// Crouching Death Location Based Animations

// Optional Animations
// fix me
//stomp		stomp.sam
//stunattack1	   	dark_hit1.SAM
//stunattack2		dark_attackC.sam
//stunattackwalk	dark_attackE.sam

// Scripted Animations
type                dark_type.SAM
guard               dark_guard.SAM
point1              dark_point1.SAM
point2              dark_point2.sam

// Id And Group Definitions
id 5 group head metal
group head damage 1.5
id 15 group torso_upper metal
group torso_upper damage 0.8
id 18 group torso_lower metal
group torso_lower damage 0.8
id 45 group leg_left_upper flesh
group leg_left_upper damage 1.25
id 50 group leg_left_lower metal
group leg_left_lower damage 1.0
id 65 group leg_right_upper flesh
group leg_right_upper damage 1.25
id 70 group leg_right_lower metal
group leg_right_lower damage 1.0
id 85 group arm_left_upper flesh
group arm_left_upper damage 1.25
id 90 group arm_left_lower metal
group arm_left_lower damage 1.0
id 105 group arm_right_upper flesh
group arm_right_upper damage 1.25
id 110 group arm_right_lower metal
group arm_right_lower damage 1.0
id 200 group arm_right_lower bone gun 0 170 300

// ----------------------------------------------------------------------------
// INITIALIZATION SECTION
//
//
!init:

//
// SERVER Initialization Commands
//
// Class Setup
server classname actor
server script global/enemy.scr
server setsize "-40 -40 0" "40 40 104"
server weapon Stungun
server health 500
server meleerange 100
server meleedamage 50
server painthreshold 100
server shotsperattack 3

// Sound Aliases
server aliascache snd_idle1	 	"monsters/darkcaptain/talk1.wav" 1
server aliascache snd_idle2	 	"monsters/darkcaptain/talk2.wav" 1
server aliascache snd_idle3	 	"monsters/darkcaptain/talk3.wav" 1
server aliascache snd_idle4	 	"monsters/darkcaptain/breath.wav" 1

server aliascache snd_investigate1 "monsters/darkcaptain/inv1.wav" 1
server aliascache snd_investigate2 "monsters/darkcaptain/inv2.wav" 1

server aliascache snd_locate1 "monsters/darkcaptain/loc1.wav" 1
server aliascache snd_locate2 "monsters/darkcaptain/loc2.wav" 1

server aliascache snd_sightenemy1 "monsters/darkcaptain/site1.wav" 1
server aliascache snd_sightenemy2 "monsters/darkcaptain/site2.wav" 1
server aliascache snd_sightenemy3 "monsters/darkcaptain/site3.wav" 1

server aliascache snd_pursuit1 "monsters/darkcaptain/purs1.wav" 1
server aliascache snd_pursuit2 "monsters/darkcaptain/purs1.wav" 1

server aliascache snd_attacktaunt1 "monsters/darkcaptain/taunt1.wav" 1
server aliascache snd_attacktaunt2 "monsters/darkcaptain/taunt2.wav" 1
server aliascache snd_attacktaunt3 "monsters/darkcaptain/taunt3.wav" 1

server aliascache snd_tauntdeath1 "monsters/darkcaptain/taunt1.wav" 1

server aliascache snd_lostweapon "monsters/darkcaptain/taunt1.wav" 1

//
// CLIENT Initialization Commands
//
// Sound Aliases
client aliascache snd_fire1      "monsters/darkcaptain/shock1.wav"
client aliascache snd_melee1     "monsters/darkcaptain/mel1.wav" 1
client aliascache snd_pre1       "monsters/darkcaptain/pre.wav" 1

client aliascache snd_pain1	 	"monsters/darkcaptain/pain1.wav" 1
client aliascache snd_pain2	 	"monsters/darkcaptain/pain2.wav" 1
client aliascache snd_pain3     "monsters/darkcaptain/pain3.wav" 1

client aliascache snd_death1	 	"monsters/darkcaptain/death1.wav" 1
client aliascache snd_death2	 	"monsters/darkcaptain/death2.wav" 1
client aliascache snd_death3	 	"monsters/darkcaptain/death3.wav" 1
client aliascache snd_death4	 	"monsters/darkcaptain/death4.wav" 1


client aliascache snd_kneefall1  "impact/bodyfall/big/sml1.wav" 1
client aliascache snd_kneefall2  "impact/bodyfall/big/sml2.wav" 1
client aliascache snd_partfall1  "monsters/darkcaptain/fall.wav" 1
client aliascache snd_bodyfall1  "monsters/darkcaptain/fall.wav" 1
client aliascache snd_boom1      "monsters/darkcaptain/walk.wav" 1
client aliascache snd_suitfail1  "monsters/darkcaptain/suitfail.wav" 1

server aliascache  snd_attacktaunt1    "monsters/darkcaptain/taunt1.wav" 1
server aliascache  snd_attacktaunt2    "monsters/darkcaptain/taunt2.wav" 1
server aliascache  snd_attacktaunt3    "monsters/darkcaptain/taunt3.wav" 1

server aliascache  snd_pain_taunt1    "monsters/darkcaptain/taunt1.wav" 1
server aliascache  snd_pain_taunt2    "monsters/darkcaptain/taunt2.wav" 1
server aliascache  snd_pain_taunt3    "monsters/darkcaptain/taunt3.wav" 1

client aliascache snd_beep1 "environment/computer/beeps/cmpbp2.wav" 4
client aliascache snd_beep2 "environment/computer/beeps/affirm4.wav" 1
client aliascache snd_beep3 "environment/computer/beeps/trek7.wav" 1
client aliascache snd_beep4 "environment/computer/compkey/Cmpkyht.wav" 15

// ----------------------------------------------------------------------------
// MAIN SECTION
//
//
!main:

// Normal Animations
server walk1  4 movementsound
client walk1  4 randomsound snd_boom .6 4
server walk1 10 movementsound
client walk1 10 randomsound snd_boom .6 4
 
server run  4 movementsound
client run  4 randomsound snd_boom 1 4
server run 10 movementsound
client run 10 randomsound snd_boom 1 4
 
server fire    3 weaponsound
server fire    3 fire
client fire    3 randomsound snd_fire 1 2
server fire last attack_finished
client fire    3 randomsound snd_boom 1 4 
client fire    7 randomsound snd_boom .5 4

// Death Animations
server death1 first deathsound
client death1 first randomsound snd_death 1 2
client death1 first randomsound snd_suitfail 1 3
client death1 1 randomsound snd_kneefall 1 4
server death1 1 movementsound
client death1 6 randomsound snd_bodyfall 1 4
server death1 6 movementsound

server death2 first deathsound
client death2 first randomsound snd_death 1 2
client death2 first randomsound snd_suitfail 1 3
client death2 6 randomsound snd_kneefall 1 4
server death2 6 movementsound
client death2 8 randomsound snd_bodyfall 1 4
server death2 8 movementsound

server death3 first deathsound
client death3 first randomsound snd_death 1 4
client death3 first randomsound snd_suitfail 1 3
client death3 3 randomsound snd_partfall 1 4
server death3 3 movementsound
client death3 16 randomsound snd_partfall 1 4
server death3 16 movementsound

// client melee1 1 randomsound snd_melee 1
// client melee2 1 randomsound snd_melee 1

// Pain Animations
client pain1 first randomsound snd_pain 1 2
server pain1 first painsound
client pain1 3 randomsound snd_bodyfall 1 4

// Pain Location Based Animations
client pain_torso_upper first randomsound snd_pain 1 2
server pain_torso_upper first painsound
client pain_torso_upper 1 randomsound snd_boom .5 4
server pain_torso_upper 1 movementsound
client pain_torso_upper 6 randomsound snd_boom .5 4
server pain_torso_upper 6 movementsound

client pain_torso_lower first randomsound snd_pain 1 2
server pain_torso_lower first painsound
client pain_torso_lower 1 randomsound snd_boom .5 4
server pain_torso_lower 1 movementsound

client pain_head first randomsound snd_pain 1 1
server pain_head first painsound

client pain_leg_right_upper first randomsound snd_pain 1 2
server pain_leg_right_upper first painsound

client pain_leg_right_lower first randomsound snd_pain 1 2
server pain_leg_right_lower first painsound

client pain_leg_left_upper first randomsound snd_pain 1 2
server pain_leg_left_upper first painsound

client pain_leg_left_lower first randomsound snd_pain 1 2
server pain_leg_left_lower first painsound

client pain_arm_right_upper first randomsound snd_pain 1 2
server pain_arm_right_upper first painsound
client pain_arm_right_upper 0 randomsound snd_boom .5 4
server pain_arm_right_upper 0 movementsound
client pain_arm_right_upper 4 randomsound snd_boom .5 4
server pain_arm_right_upper 4 movementsound

client pain_arm_right_lower first randomsound snd_pain 1 2
server pain_arm_right_lower first painsound
client pain_arm_right_lower 0 randomsound snd_boom .5 4
server pain_arm_right_lower 0 movementsound
client pain_arm_right_lower 4 randomsound snd_boom .5 4
server pain_arm_right_lower 4 movementsound

client pain_arm_left_upper first randomsound snd_pain 1 2
server pain_arm_left_upper first painsound
client pain_arm_left_lower first randomsound snd_pain 1 2
server pain_arm_left_lower first painsound

// Melee Animations
client melee1 first randomsound snd_pre 1 4
server melee1 first movementsound
client melee1 3 randomsound snd_melee 1 4
server melee1 3 melee
server melee1 3 movementsound

client melee2 first randomsound snd_pre 1 4
server melee2 first movementsound
client melee2 2 randomsound snd_melee 1 4
server melee2 2 melee
server melee2 2 movementsound

client melee3 first randomsound snd_pre 1 4
server melee3 first movementsound
client melee3 2 randomsound snd_melee 1 4
server melee3 2 melee
server melee3 2 movementsound

client melee4 first randomsound snd_pre 1 4
server melee4 first movementsound
client melee4 3 randomsound snd_melee 1 4
server melee4 3 melee
server melee4 3 movementsound

// Optional Animations
// fix me
//client stomp 5 randomsound snd_bodyfall 1
//server stomp 5 movementsound

//client stunattack1 5 footstep
//server stunattack1 5 movementsound

//client stunattack2 3 footstep
//server stunattack2 3 movementsound

//client stunattackwalk 10 footstep
//server stunattackwalk 10 movementsound
//client stunattackwalk 3 footstep
//server stunattackwalk 3 movementsound

// Scripted Animations
server type  4 movementsound
client type  4 randomsound snd_beep .5 4
client type  8 randomsound snd_beep .5 4
client type 12 randomsound snd_beep .5 4
client type 15 randomsound snd_beep .5 4

// -------------------------------------------------------------------------------------------------
// SOURCESAFE Update Log
//
// $Log:: /Quake 2 Engine/Sin/Base Sin Data/Models/Monster/dark.def           $
// 
// 32    11/14/98 1:25a Joeske
// Fix typos in group definition areas. Underscores were missing.
// 
// 31    10/27/98 2:00p Beau
// 
// 30    10/27/98 1:59p Phook
// 
// 29    10/22/98 11:01p Joeske
// Fixed snd_lostweapon references in files.
// 
// 28    10/21/98 4:36p Joeske
// Added in Zack's modifications via email.
// 
// 27    10/21/98 1:14a Markd
// gave him the stun weapon
//
// 26    10/16/98 3:28p Phook
//
// 25    10/16/98 1:51p Beau
//
// 24    10/10/98 2:56p Markd
// Adjusted melee damages
//
// 23    10/09/98 11:59p Markd
// Fixed melee attacks etc.
//
// 22    10/07/98 4:45p Joeske
// Updated with Zak's changes.
//
// 21    9/20/98 8:37p Onethumb
// Semi-final revisions complete, almost ready for first half beta
//
// 20    9/20/98 7:14p Onethumb
// Minor changes
//
// 19    9/14/98 12:03p Onethumb
// Added health
//
// 18    9/13/98 7:14p Onethumb
// finished revising dark.def
//
// 16    9/13/98 7:08p Onethumb
// Modified stunattackwalk
//
// 15    9/13/98 7:05p Onethumb
// Added new sounds to animations
// ----------------------------------------------------------------------------
